package com.hurr.service.impl;

import java.util.Collection;

import com.hurr.bo.Finance;
import com.hurr.dao.FinanceDao;
import com.hurr.service.FinanceService;

/**
 * Implemetation for Finance Service
 * 
 * @author Fernando Perelli
 * 
 */
public class FinanceServiceImpl implements FinanceService {

	/**
	 * Dao for finance
	 */
	private FinanceDao financeDao;

	/**
	 * Set fincanceDao
	 * 
	 * @param financeDao
	 */
	public void setFinanceDao(FinanceDao financeDao) {
		this.financeDao = financeDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.FinanceService#save(com.hurr.bo.Finance)
	 */
	@Override
	public Finance save(Finance finance) {
		return financeDao.save(finance);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.hurr.service.FinanceService#update(com.hurr.bo.Finance)
	 */
	@Override
	public void update(Finance finance) {
		financeDao.update(finance);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.hurr.service.FinanceService#delete(com.hurr.bo.Finance)
	 */
	@Override
	public void delete(Finance finance) {
		financeDao.delete(finance);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.FinanceService#findById(java.lang.Long)
	 */
	@Override
	public Finance findById(Long id) {
		return financeDao.findById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.FinanceService#findAll()
	 */
	@Override
	public Collection<Finance> findAll() {
		return financeDao.findAll();
	}

}
